package com.pg.auth.model.dto.sysrolemenu;

import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;
import com.pg.auth.model.entity.SysRoleMenu;
import com.pg.auth.model.dto.sysrolemenu.SysRoleMenuVO;
import java.util.List;


/***
 * 对象转换
 * @author : huhuaping
 * @Date : 2024-06-06 19:55:33
 */
@Mapper(componentModel = "spring", unmappedSourcePolicy = ReportingPolicy.IGNORE, unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface SysRoleMenuConvertor {

    SysRoleMenuConvertor INSTANCE = Mappers.getMapper(SysRoleMenuConvertor.class);

    SysRoleMenu dtoToDB(SysRoleMenuDTO sysRoleMenuDTO);

    SysRoleMenuVO dbToVO(SysRoleMenu sysRoleMenu);

    List<SysRoleMenuVO> listDbToVO(List<SysRoleMenu> list);
}
